package com.linsen.core.oauth2.config;

import com.linsen.core.common.annotation.AutoConfiguration;
import com.linsen.core.oauth2.handler.SaOAuth2ExceptionHandler;
import com.linsen.core.oauth2.handler.SaOAuth2ServerHandler;
import com.linsen.core.oauth2.handler.SaOAuth2TemplateHandler;
import org.springframework.context.annotation.Bean;

/**
 * @author zhaoyong
 * @date 2023/3/15
 */
@AutoConfiguration
public class LinsenOauth2AutoConfiguration {
    @Bean
    public SaOAuth2ExceptionHandler saOAuth2ExceptionHandler(){
        return new SaOAuth2ExceptionHandler();
    }

    @Bean
    public SaOAuth2ServerHandler saOAuth2ServerHandler(){
        return new SaOAuth2ServerHandler();
    }

    @Bean
    public SaOAuth2TemplateHandler saOAuth2TemplateHandler(){
        return new SaOAuth2TemplateHandler();
    }
}
